#ifndef _UTILS_H_
#define _UTILS_H_

#include <string>
#include <vector>
#include <opencv2/imgcodecs.hpp>

namespace Utils
{
extern bool using_img;
extern std::string ext_names;
extern int last_img;
extern int video_speed;
extern int max_find_armor_red;
extern int max_find_armor_blue;
extern bool save_error_img_only;

std::vector<std::string> traverse_folder(const std::string &path);
void read_config(const std::string &file_path);
cv::Mat read_img(const std::vector<std::string> &files, int i);
std::size_t get_size(const std::vector<std::string> &files);
}

#endif //_UTILS_H_
